package com.xzy.Service;

import org.springframework.stereotype.Component;

/**
 * 具体策略2
 * 新客户大批量
 * 打九折
 */
@Component("customer2")
public class NewCustomerManyStrategy implements Strategy{
    @Override
    public double getPrice( double price) {
        System.out.println("打九折");
        return price*0.9;
    }
}
